import  os
import sys
import time
import datetime
import django



base_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(base_dir)

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tracker.settings")
django.setup()  # os.environ["DJANGO_SETTINGS_MODULE"]

# date_time = datetime.datetime(4,2,2,2,2,2)
# ?????
from web import models

# def Free_Type(title='个人免费版', price=0, project_nums = 3, pro_user_num=2 ,
#               pro_cap=20, single_file=5):
#     # print(locals())
#     models.Goods_Type.objects.create(title=title,price_year=price,project_num_limit=
#                                      project_nums,usernums_perproject=pro_user_num,
#                                      capacity_perproject=pro_cap,
#                                      single_file_cap_lim=single_file)

    # print( models.Goods_Type.objects.filter(id=1).first().create_date.year)
    # print( type(models.Goods_Type.objects.filter(id=1).first().create_date))

    # return 'add Free_Type Success'

if __name__ == '__main__':
    # print(Free_Type())
    pass